import { commonRequest } from '@/api/commonHttp';

// 原材料待办 - 列表查询
export const queryMaterialToDoListService = (data, loadingFn) => commonRequest({
  url: '/sysback/product/rawMaterial/getRawMaterialTodoList',
  type: 'post',
  data,
  loadingFn
});
// 原材料待办 - 详情
export const queryMaterialToDoDetailService = (data, loadingFn) => commonRequest({
  url: '/sysback/product/rawMaterial/rawMaterialTodoListProcess',
  type: 'post',
  data,
  loadingFn
});
// 原材料待办 - 处理
export const handleProcessMaterialService = (data, loadingFn) => commonRequest({
  url: '/sysback/product/rawMaterial/rawMaterialTodoListProcessCommit',
  type: 'post',
  data,
  loadingFn
});
// 原材料待办 - 审核
export const handleApproveMaterialService = (data, loadingFn) => commonRequest({
  url: '/sysback/product/rawMaterial/rawMaterialTodoListApproveCommit',
  type: 'post',
  data,
  loadingFn
});

// 原材料待办 - 归属部门
export const queryDropdownService = (data, loadingFn) => commonRequest({
  url: '/sysback/product/rawMaterial/queryDropdownItemList',
  type: 'post',
  data,
  loadingFn
});

// 原材料待办 - 导出
export const exportMaterialToDoListService = (data, loadingFn) => commonRequest({
  url: '/sysback/product/rawMaterial/exportRawMaterialTodoListData',
  type: 'post',
  data,
  loadingFn,
  isExport: true
});